package com.ruoyi.quality.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.quality.domain.dto.InspectionTemplateMaterialDto;
import com.ruoyi.quality.domain.dto.MaterialTemplateDto;
import com.ruoyi.quality.service.InspectionTemplateMaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.List;

@RestController
@RequestMapping("/inspectionTemplateMaterial")
public class InspectionTemplateMaterialController {

    @Autowired
    InspectionTemplateMaterialService inspectionTemplateMaterialService;


    @PostMapping("/addInspectionTemplateMaterial")
    public R addTest(@RequestBody MaterialTemplateDto materialTemplateDto   )  {
        inspectionTemplateMaterialService.addInspectionTemplateMaterial(materialTemplateDto);
        return R.ok("添加成功");
    }

}
